import request from "@/utils/request"

//货品类型管理条件查询分页
export let GoodsTypeQuery = data => {
    return request({
        method: "get",
        url: "goodsType/GoodsTypeQuery",
        params: data
    })
    
}
//修改
export let updateById = data => {
    return request({
        method: "put",
        url: "goodsType/updateById",
        data: data
    
    })
}
    //删除货物类型及其关联表数据

export let deleteGoodsType = data => {
    return request({
        method: "get",
        url: "goodsType/deleteGoodsType",
        params: data
    
    })
}
    //添加
export let save = data => {
    return request({
        method: "post",
        url: "goodsType/save",
        data: data
    
    })
}

//车辆类型查询全部
export let truckTypeAll = data => {
    return request({
        method: "get",
        url: "truckType/truckTypeAll",
        params: data
    })
    
}